package src.origintrail;

/**
 *Class that represents and Item of type Wagon
 * @author csmythe
 */
public class Wagon extends Item{
    private int massHeld= 0;
    /**
    *Constructor that creates an instance of Wagon
    */
    public Wagon() {
        super();
    }
    /**
    * Initializer for an instance of Wagon
    *@param	stack	value containing the number of wagon
    */
    @Override
    public Wagon initialize(int stack) {
        super.initialize(stack, "Wagon", -4000, -1);
        return this;
    }

    /**
     * Adds mass to the wagon
     * @param addMass Amount to add
     */
    public void addMassHeld(int addMass){
        this.massHeld += addMass;
    }
    
    /**
     * Getter
     * @return this.massHeld
     */
    public int getMassHeld(){
        return this.massHeld;
    }
}
